using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using taxi_sovereign.model;

namespace taxi_sovereign.view
{
    public partial class LogForm : Form
    {
        public LogForm()
        {
            InitializeComponent();
            richTextBox1.Text=Logger.GetLog();
        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            richTextBox1.Clear();
        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = Logger.GetLog();
        }

        private void toolStripButton4_Click(object sender, EventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            if (toolStripButton4.Checked)
            {
                richTextBox1.Text = Logger.GetLog();
            }
        }

        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            if (toolStripButton5.Checked)
            {
                this.TopMost = true;
            }
            else
            {
                this.TopMost =false;
            }
        }
    }
}